package org.example.rubbish.entity;

import java.util.Date;
public class AdminUser {
    private Long id;
    private String username;
    private String password;
    private String salt;
    private String realName;
    private String role;
    private Integer status;
    private String department;
    private String permissions;
    private Date createTime;
    private Date updateTime;
    private String lastLoginIp;
    private Date lastLoginTime;

    // 无参构造器（必须添加）
    public AdminUser() {
    }

    // 全参构造器
    public AdminUser(Long id, String username, String password, String salt, String realName,
                     String role, Integer status, String department, String permissions,
                     Date createTime, Date updateTime, String lastLoginIp, Date lastLoginTime) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.salt = salt;
        this.realName = realName;
        this.role = role;
        this.status = status;
        this.department = department;
        this.permissions = permissions;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.lastLoginIp = lastLoginIp;
        this.lastLoginTime = lastLoginTime;
    }

    // 原有的getters and setters保持不变...
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getPermissions() {
        return permissions;
    }

    public void setPermissions(String permissions) {
        this.permissions = permissions;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getLastLoginIp() {
        return lastLoginIp;
    }

    public void setLastLoginIp(String lastLoginIp) {
        this.lastLoginIp = lastLoginIp;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }
}
